package com.ssm;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpringConstructor {

	public static void main(String[] args) {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
//		AdminInfo adminInfo = (AdminInfo) ctx.getBean("adminInfo");
//		
//		System.out.println(adminInfo);
//		adminInfo.print();
		
		AdminInfo admin = (AdminInfo) ctx.getBean("admin");
		
		System.out.println(admin);
		admin.print();
	}

}
